package com.bee.beemanage.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bee.beemanage.api.entity.SysUser;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 陈国松
 * @since 2022-10-10
 */
public interface SysUserService extends IService<SysUser> {
    SysUser findUserByUserName(String userName);

    void CacheTest();

    /**
     * 查询状态为逻辑删除的数据
     * @param sysUser
     * @return
     */
    Page<SysUser> recycleSearch(Page<SysUser> page, SysUser sysUser, LocalDateTime startTime, LocalDateTime endTime);

    /**
     * 批量物理删除
     * @return
     */
    boolean clear();

    /**
     * 批量恢复逻辑删除的数据
     * @param ids
     * @return
     */
    boolean recover(List<String> ids);
}
